package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the pur_return_details database table.
 * 
 */
@Entity
@Table(name="pur_return_details")
@NamedQuery(name="PurReturnDetail.findAll", query="SELECT p FROM PurReturnDetail p")
public class PurReturnDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="returndetail_id")
	private String returndetailId;

	@Column(name="contax_money")
	private BigDecimal contaxMoney;

	@Column(name="contax_price")
	private BigDecimal contaxPrice;

	private BigDecimal money;

	private BigDecimal price;

	@Column(name="pro_id")
	private String proId;

	private String remarks;

	@Column(name="return_quantity")
	private int returnQuantity;

	@Column(name="return_reason")
	private String returnReason;

	private BigDecimal tax;

	@Column(name="tax_money")
	private BigDecimal taxMoney;

	//bi-directional many-to-one association to PurReturn
	@ManyToOne
	@JoinColumn(name="return_id")
	private PurReturn purReturn;

	public PurReturnDetail() {
	}

	public String getReturndetailId() {
		return this.returndetailId;
	}

	public void setReturndetailId(String returndetailId) {
		this.returndetailId = returndetailId;
	}

	public BigDecimal getContaxMoney() {
		return this.contaxMoney;
	}

	public void setContaxMoney(BigDecimal contaxMoney) {
		this.contaxMoney = contaxMoney;
	}

	public BigDecimal getContaxPrice() {
		return this.contaxPrice;
	}

	public void setContaxPrice(BigDecimal contaxPrice) {
		this.contaxPrice = contaxPrice;
	}

	public BigDecimal getMoney() {
		return this.money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getProId() {
		return this.proId;
	}

	public void setProId(String proId) {
		this.proId = proId;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public int getReturnQuantity() {
		return this.returnQuantity;
	}

	public void setReturnQuantity(int returnQuantity) {
		this.returnQuantity = returnQuantity;
	}

	public String getReturnReason() {
		return this.returnReason;
	}

	public void setReturnReason(String returnReason) {
		this.returnReason = returnReason;
	}

	public BigDecimal getTax() {
		return this.tax;
	}

	public void setTax(BigDecimal tax) {
		this.tax = tax;
	}

	public BigDecimal getTaxMoney() {
		return this.taxMoney;
	}

	public void setTaxMoney(BigDecimal taxMoney) {
		this.taxMoney = taxMoney;
	}

	public PurReturn getPurReturn() {
		return this.purReturn;
	}

	public void setPurReturn(PurReturn purReturn) {
		this.purReturn = purReturn;
	}

}